<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      layout:decorate="main">
<head>
    <meta charset="UTF-8">
    <title>客户等级管理</title>
    <link th:href="@{/localcss/appinfolist.css}" href="../static/localcss/appinfolist.css" rel="stylesheet">

    <script th:src="@{/js/jquery.min.js}" src="../static/js/jquery.min.js"></script>
    <script th:src="@{/localjs/rollpage.js}" src="../static/localjs/rollpage.js"></script>

</head>
<body>
<div layout:fragment="content">    <script th:src="@{/localjs/appinfolist.js}" src="../static/localjs/appinfolist.js"></script>
    <div class="clearfix"></div>
    <div class="row">
        <div class="col-md-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>
                        客户等级管理<i class="fa fa-user"></i>
                        <small><span th:text="${session.loginUser.usrName}"></span>
                        </small>
                    </h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form method="post" action="/basd/cust_list" th:action="@{/basd/cust_list}">
                        <input type="hidden" name="pageIndex" th:value="${dictPage.number+1}" value="1" />
                        <ul>
                            <li>
                                <div class="form-group">
                                    <label class="control-label col-md-3 col-sm-3 col-xs-12">编号</label>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <input name="dictId" type="text"
                                               class="form-control col-md-7 col-xs-12"
                                               th:value="${dictId}" value="">
                                    </div>
                                </div>
                            </li>
                            <li>
                                <div class="form-group">
                                    <label class="control-label col-md-3 col-sm-3 col-xs-12">值</label>
                                    <div class="col-md-6 col-sm-6 col-xs-12">
                                        <input name="dictItem" type="text"
                                               class="form-control col-md-7 col-xs-12"
                                               th:value="${dictItem}" value="">
                                    </div>
                                </div>
                            </li>
                        </ul>
                        <div style="float: right">
                            <button type="button" class="btn btn-info">关于</button>
                            <button type="submit" class="btn btn-primary">查询</button>
                            <a th:href="@{/basd/cust_add}" href="../basd/cust_add"
                               class="btn btn-success">新建</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">

                <div class="x_content">
                    <p class="text-muted font-13 m-b-30"></p>
                    <div id="datatable-responsive_wrapper"
                         class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                        <div class="row">
                            <div class="col-sm-12">

                                <table id="datatable-responsive"
                                       class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
                                       cellspacing="0" width="100%" role="grid"
                                       aria-describedby="datatable-responsive_info"
                                       style="width: 100%;">
                                    <thead>
                                    <tr role="row">
                                        <th class="sorting_asc" tabindex="0"
                                            aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                            aria-label="First name: activate to sort column descending"
                                            aria-sort="ascending">编号
                                        </th>
                                        <th class="sorting" tabindex="0"
                                            aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                            aria-label="Last name: activate to sort column ascending">
                                            值
                                        </th>
                                        <th class="sorting" tabindex="0"
                                            aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                            style="width: 124px;"
                                            aria-label="Last name: activate to sort column ascending">
                                            操作
                                        </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr th:each="dict : ${dictPage.content}" th:if="${dict.dictType=='客户等级'}" role="row" class="odd">
                                        <td th:text="${dict.dictId}"></td>
                                        <td th:text="${dict.dictItem}"></td>
                                        <td>
                                            <div class="btn-group">
                                                <button type="button" class="btn btn-danger">点击操作</button>
                                                <button type="button"
                                                        class="btn btn-danger dropdown-toggle"
                                                        data-toggle="dropdown" aria-expanded="false">
                                                    <span class="caret"></span> <span class="sr-only">Toggle
															Dropdown</span>
                                                </button>
                                                <ul class="dropdown-menu" role="menu">
                                                    <li><a th:onclick="'javascript:custEdit('+${dict.dictId}+');'" data-toggle="tooltip"
                                                           data-placement="top" title=""
                                                           data-original-title="编辑">编辑 </a></li>
                                                    <li><a th:onclick="'javascript:custDel('+this+','+${dict.dictId}+');'" class="deleteApp"
                                                           data-toggle="tooltip" data-placement="top" title=""
                                                           data-original-title="删除">删除</a></li>
                                                </ul>
                                            </div>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-5">
                                <div class="dataTables_info" id="datatable-responsive_info"
                                     role="status" aria-live="polite">共<span th:text="${dictPage.totalElements}">999</span>条记录
                                    <span th:text="${dictPage.number + 1}"></span>/<span th:text="${dictPage.totalPages}"></span>页
                                </div>
                            </div>
                            <div class="col-sm-7">
                                <div class="dataTables_paginate paging_simple_numbers"
                                     id="datatable-responsive_paginate">
                                    <ul class="pagination">
                                        <li class="paginate_button previous" th:if="${dictPage.number gt 0}"><a
                                                href="javascript:page_nav(document.forms[0],1);"
                                                aria-controls="datatable-responsive" data-dt-idx="0"
                                                tabindex="0">首页</a></li>
                                        <li class="paginate_button " th:if="${dictPage.number gt 0}"><a
                                                href="#" th:onclick="'javascript:page_nav(document.forms[0],'+${dictPage.number}+');'"
                                                aria-controls="datatable-responsive" data-dt-idx="1"
                                                tabindex="0">上一页</a></li>
                                        <li class="paginate_button " th:if="${(dictPage.number+1) lt dictPage.totalPages}"><a
                                                href="#" th:onclick="'javascript:page_nav(document.forms[0],'+${dictPage.number+2}+');'"
                                                aria-controls="datatable-responsive" data-dt-idx="1"
                                                tabindex="0">下一页</a></li>
                                        <li class="paginate_button next" th:if="${(dictPage.number+1) lt dictPage.totalPages}"><a
                                                href="#" th:onclick="'javascript:page_nav(document.forms[0],'+${dictPage.totalPages}+');'"
                                                aria-controls="datatable-responsive" data-dt-idx="7"
                                                tabindex="0">最后一页</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>